home *** CD-ROM | disk | FTP | other *** search
/ Erotic Games: Memory / Erotic Games: Memory.iso / mac / air_installers / AdobeAIR.exe / setup.swf / scripts / _plainStyle.as < prev    next >
Text File  |  2009-02-12  |  1KB  |  41 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.styles.CSSStyleDeclaration;
  5.    import mx.styles.StyleManager;
  6.    
  7.    public class _plainStyle
  8.    {
  9.        
  10.       
  11.       public function _plainStyle()
  12.       {
  13.          super();
  14.       }
  15.       
  16.       public static function init(param1:IFlexModuleFactory) : void
  17.       {
  18.          var fbs:IFlexModuleFactory = param1;
  19.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".plain");
  20.          if(!style)
  21.          {
  22.             style = new CSSStyleDeclaration();
  23.             StyleManager.setStyleDeclaration(".plain",style,false);
  24.          }
  25.          if(style.defaultFactory == null)
  26.          {
  27.             style.defaultFactory = function():void
  28.             {
  29.                this.paddingTop = 0;
  30.                this.paddingLeft = 0;
  31.                this.horizontalAlign = "left";
  32.                this.paddingRight = 0;
  33.                this.backgroundImage = "";
  34.                this.paddingBottom = 0;
  35.                this.backgroundColor = 16777215;
  36.             };
  37.          }
  38.       }
  39.    }
  40. }
  41.